package com.liuxl.wqdc.repository;

import com.liuxl.wqdc.entity.TwoLevelQuestion;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TwoLevelQuestionRepository extends JpaRepository<TwoLevelQuestion, Integer>, JpaSpecificationExecutor<TwoLevelQuestion> {

    List<TwoLevelQuestion> findByOneLevelQuestionIdIn(List<Integer> list);

    List<TwoLevelQuestion> findByIdIn(List<Integer> list);

}
